export default {

	// 支付
	orderPay(pay) {
		return new Promise((resolve, reject) => {
			uni.requestPayment({
				provider: 'wxpay',
				timeStamp: pay.timeStamp,
				nonceStr: pay.nonceStr,
				package: pay.package,
				signType: 'MD5',
				paySign: pay.paySign,
				success: function(res) {
					console.log('success:', res);
					resolve(res)
				},
				fail: function(err) {
					console.log('fail:' + JSON.stringify(err));
					resolve(err)
				}
			});
		})

	}

}
